package com.ruoyi.experiment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网络对象 network
 * 
 * @author 邓鑫
 * @date 2023-07-29
 */
public class Network extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 网络id */
    private Long networkId;

    /** 网络名称 */
    @Excel(name = "网络名称")
    private String networkName;

    /** 管理员状态 */
    @Excel(name = "管理员状态")
    private String adminStatus;

    /** 子网名称 */
    @Excel(name = "子网名称")
    private String subnetName;

    /** 网络地址 */
    @Excel(name = "网络地址")
    private String networkAddress;

    /** IP版本 */
    @Excel(name = "IP版本")
    private String ipVersion;

    /** 网关IP */
    @Excel(name = "网关IP")
    private String gatewayIp;

    /** 是否禁用网关 */
    @Excel(name = "是否禁用网关")
    private String isGateway;

    /** 是否激活DHCP */
    @Excel(name = "是否激活DHCP")
    private String isDhcp;

    /** 分配地址池 */
    @Excel(name = "分配地址池")
    private String addressPool;

    /** DNS域名解析服务 */
    @Excel(name = "DNS域名解析服务")
    private String dnsService;

    /** 主机路由 */
    @Excel(name = "主机路由")
    private String hostRoute;

    public void setNetworkId(Long networkId) 
    {
        this.networkId = networkId;
    }

    public Long getNetworkId() 
    {
        return networkId;
    }
    public void setNetworkName(String networkName) 
    {
        this.networkName = networkName;
    }

    public String getNetworkName() 
    {
        return networkName;
    }
    public void setAdminStatus(String adminStatus) 
    {
        this.adminStatus = adminStatus;
    }

    public String getAdminStatus() 
    {
        return adminStatus;
    }
    public void setSubnetName(String subnetName) 
    {
        this.subnetName = subnetName;
    }

    public String getSubnetName() 
    {
        return subnetName;
    }
    public void setNetworkAddress(String networkAddress) 
    {
        this.networkAddress = networkAddress;
    }

    public String getNetworkAddress() 
    {
        return networkAddress;
    }
    public void setIpVersion(String ipVersion) 
    {
        this.ipVersion = ipVersion;
    }

    public String getIpVersion() 
    {
        return ipVersion;
    }
    public void setGatewayIp(String gatewayIp) 
    {
        this.gatewayIp = gatewayIp;
    }

    public String getGatewayIp() 
    {
        return gatewayIp;
    }
    public void setIsGateway(String isGateway) 
    {
        this.isGateway = isGateway;
    }

    public String getIsGateway() 
    {
        return isGateway;
    }
    public void setIsDhcp(String isDhcp) 
    {
        this.isDhcp = isDhcp;
    }

    public String getIsDhcp() 
    {
        return isDhcp;
    }
    public void setAddressPool(String addressPool) 
    {
        this.addressPool = addressPool;
    }

    public String getAddressPool() 
    {
        return addressPool;
    }
    public void setDnsService(String dnsService) 
    {
        this.dnsService = dnsService;
    }

    public String getDnsService() 
    {
        return dnsService;
    }
    public void setHostRoute(String hostRoute) 
    {
        this.hostRoute = hostRoute;
    }

    public String getHostRoute() 
    {
        return hostRoute;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("networkId", getNetworkId())
            .append("networkName", getNetworkName())
            .append("adminStatus", getAdminStatus())
            .append("subnetName", getSubnetName())
            .append("networkAddress", getNetworkAddress())
            .append("ipVersion", getIpVersion())
            .append("gatewayIp", getGatewayIp())
            .append("isGateway", getIsGateway())
            .append("isDhcp", getIsDhcp())
            .append("addressPool", getAddressPool())
            .append("dnsService", getDnsService())
            .append("hostRoute", getHostRoute())
            .toString();
    }
}
